package com.aaa.mrcai.controller;

import com.aaa.mrcai.query.UserOrderQuery;
import com.aaa.mrcai.result.AjaxResult;
import com.aaa.mrcai.service.UserOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:Li-Yan-Chun
 * @Date:2021/12/20 19:33
 */
@RestController
@RequestMapping("userOrder")
public class UserOrderController {

    @Autowired
    private UserOrderService userOrderService;

    @RequestMapping("list")
    public AjaxResult list(UserOrderQuery userOrderQuery){
        return userOrderService.list(userOrderQuery);
    }
}
